const WebSocket = require ('ws')


const ws = new WebSocket('ws://127.0.0.1:9000')

ws.on('open', function open(){
    ws.send(11)
})

ws.on('message', function message(data) {
    console.log("客户端收到服务端的消息", JSON.parse(data));
})